(()=>{var e={6238:(e,t)=>{t.Q={apiUrl:"//designer-api.hu-manity.co",balancerUrl:"//transactional-api.hu-manity.co",accountUrl:"//account-api.hu-manity.co",xApiKey:"hudft60djisdusdjwek",iframeUrl:"//cdn.hu-manity.co/empty.html",contactImageUrl:"//images-app.hu-manity.co",prefix:"hu",scriptTag:"hu-banner.min.js",teleUrl:"//tele-cdn.s3.us-east-2.amazonaws.com/js/privacy-tele.js"}}},t={};function o(i){var n=t[i];if(void 0!==n)return n.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,o),s.exports}(()=>{"use strict";var e=o(6238),t=[["Basic Operations","en",1,"This type of sharing is necessary for us to access the data we need to make sure the website is secure and working properly.","Data Accessed",["Anonymous data like browser name and version","Pseudonymous data like authentication token",""]],["Content Personalisation","en",2,"When enabled, you allow us to save your preferences and create a profile about you so we can deliver personalized content.","Data Accessed",["Anonymous data like device type, model and operating system","Pseudonymous data like site browsing preferences","Personal data like your IP address and location"]],["Site Optimisation","en",3,"When enabled, this allows us to monitor your behavior so we can analyze and improve the services on our website for all visitors.","Data Accessed",["Anonymous data like the address of the previously visited website (HTTP Referer)","Pseudonymous data like website activity identifiers","Personal data like content, search and purchase history"]],["Ad Personalisation","en",4,"When enabled, you allow us to share data with our advertising partners that build profiles about you across multiple websites.","Data Accessed",["Anonymous data like affiliate referral links","Pseudonymous data like identifiers used to track and profile users","Personal data like your age, gender and demographics"]]],i=[["translate.google.com",1,2,1,"script","URL"],["fonts.googleapis.com",2,2,2,"script","URL"],["google.com/recaptcha",3,2,3,"script","URL"],["google.com/maps",4,2,4,"script","URL"],["maps.google.it/maps",5,2,4,"iFrame","URL"],["maps.google.com/maps",6,2,4,"iFrame","URL"],["google.com/maps/embed",7,2,4,"iFrame","URL"],["google.com/charts",8,2,5,"script","URL"],["apis.google.com/js/platform.js",9,2,6,"script","URL"],["apis.google.com/js/api.js",10,2,7,"script","URL"],["apis.google.com",11,2,7,"iFrame","URL"],["google.com/jsapi",12,2,8,"script","URL"],["google.com/coop",13,2,8,"script","URL"],["cse.google.com/cse.js",14,2,8,"script","URL"],["googletagmanager.com/gtm.js",15,2,9,"script","URL"],["googletagmanager.com/gtag/js",16,2,9,"script","URL"],["googletagmanager.com/ns.html",17,2,9,"iFrame","URL"],["youtube.com/iframe_api",18,2,10,"script","URL"],["youtu.be",19,2,10,"script","URL"],["youtube.com",20,2,10,"iFrame","URL"],["youtube.com/embed",21,2,10,"iFrame","URL"],["player.vimeo.com",22,2,101,"iFrame","URL"],["adobedtm.com",23,2,11,"script","URL"],["livefyre.com",24,2,12,"script","URL"],["fyre.co",25,2,12,"script","URL"],["disqus.com",26,2,13,"script","URL"],["platform.twitter.com/widgets.js",27,2,14,"script","URL"],["platform.twitter.com",28,2,14,"iFrame","URL"],["instawidget.net/js/instawidget.js",29,2,15,"script","URL"],["platform.linkedin.com/in.js",30,2,16,"script","URL"],["pinterest.com/js/pinit.js",31,2,17,"script","URL"],["wchat.freshchat.com",32,2,18,"script","URL"],["widget.uservoice.com",33,2,19,"script","URL"],["static.olark.com/jsclient/loader0.js",34,2,20,"script","URL"],["cdn.elev.io",35,2,21,"script","URL"],["facebook.com/plugins/like.php",36,2,58,"iFrame","URL"],["facebook.com/plugins/likebox.php",37,2,58,"iFrame","URL"],["facebook.com/v3.2/plugins/like.php",38,2,58,"iFrame","URL"],["facebook.com/v3.2/plugins/likebox.php",39,2,58,"iFrame","URL"],["adadvisor.net",40,3,22,"script","URL"],["newrelic.com",41,3,23,"script","URL"],["nr-data.net",42,3,23,"script","URL"],["imrworldwide.com",43,3,24,"script","URL"],["yahoo.com",44,3,25,"script","URL"],["yahooapis.com",45,3,25,"script","URL"],["optimizely.com",46,3,26,"script","URL"],["cdn.optimizely.com/js",47,3,26,"script","URL"],["parsely.com",48,3,27,"script","URL"],["scorecardresearch.com",49,3,28,"script","URL"],["scoreresearch.com",50,3,28,"script","URL"],["scrsrch.com",51,3,28,"script","URL"],["securestudies.com",52,3,28,"script","URL"],["chartbeat.net",53,3,29,"script","URL"],["chartbeat.com",54,3,29,"script","URL"],["addthis.com/js/",55,3,30,"script","URL"],["sharethis.com/button/buttons.js",56,3,31,"script","URL"],["sharethis.com/button/async-buttons.js",57,3,31,"script","URL"],["i.kissmetrics.com/i.js",58,3,32,"script","URL"],["cdn.segment.io/analytics.js",59,3,33,"script","URL"],["cdn.segment.com/analytics.js",60,3,33,"script","URL"],["google-analytics.com",61,3,34,"script","URL"],["matomo.js",62,3,96,"script","URL"],["script.crazyegg.com",63,3,97,"script","URL"],["lms-analytics/insight.min.js",64,3,98,"script","URL"],["cdn.feed.4wnet.com/resources/scripts/jsAds-1.4.min.js",65,4,35,"script","URL"],["static.addtoany.com/menu/page.js",66,4,36,"script","URL"],["adform.net",67,4,37,"script","URL"],["omtrdc.net",68,4,38,"script","URL"],["2o7.net",69,4,38,"script","URL"],["adroll.com",70,4,39,"script","URL"],["s.adroll.com",71,4,39,"script","URL"],["/j/roundtrip.js",72,4,39,"script","URL"],["advertising.com",73,4,41,"script","URL"],["ad.altervista.org/js",74,4,42,"script","URL"],["amazon-adsystem.com",75,4,43,"script","URL"],["adnxs.com",76,4,44,"script","URL"],["revsci.net",77,4,45,"script","URL"],["bidswitch.net",78,4,46,"script","URL"],["bluekai.com",79,4,47,"script","URL"],["ml314.com",80,4,48,"script","URL"],["btrll.com",81,4,49,"script","URL"],["casalemedia.com",82,4,50,"script","URL"],["indexww.com",83,4,50,"script","URL"],["criteo.com",84,4,51,"script","URL"],["nexac.com",85,4,52,"script","URL"],["demdex.net",86,4,53,"script","URL"],["everestjs.net",87,4,53,"script","URL"],["everesttech.net",88,4,53,"script","URL"],["doubleclick.net",89,4,54,"script","URL"],["2mdn.net",90,4,54,"script","URL"],["adsymptotic.com",91,4,55,"script","URL"],["media6degrees.com",92,4,56,"script","URL"],["exelator.com",93,4,57,"script","URL"],["connect.facebook.net",94,4,58,"script","URL"],["wishabi.net",95,4,59,"script","URL"],["wishabi.com",96,4,59,"script","URL"],["circularhub.com",97,4,59,"script","URL"],["google.com/ads",98,4,60,"script","URL"],["google.se/ads",99,4,60,"script","URL"],["google.com/adsense",100,4,60,"script","URL"],["google.com/pagead",101,4,60,"script","URL"],["google.com/js/gweb",102,4,60,"script","URL"],["googlesyndication.com/pagead/js/adsbygoogle.js",103,4,60,"script","URL"],["googlesyndication.com/pagead/show_ads.js",104,4,60,"script","URL"],["googleadservices.com/pagead/conversion.js",105,4,60,"script","URL"],["window.adsbygoogle",106,4,60,"iFrame","URL"],["imasdk.googleapis.com",107,4,61,"script","URL"],["newsinc.com",108,4,63,"script","URL"],["ixiaa.com",109,4,64,"script","URL"],["sonobi.com",110,4,65,"script","URL"],["krxd.net",111,4,66,"script","URL"],["lijit.com",112,4,67,"script","URL"],["rlcdn.com",113,4,68,"script","URL"],["pippio.com",114,4,68,"script","URL"],["rapleaf.com",115,4,68,"script","URL"],["crwdcntrl.net",116,4,69,"script","URL"],["mookie1.com",117,4,70,"script","URL"],["mathtag.com",118,4,71,"script","URL"],["mathads.com",119,4,71,"script","URL"],["moatads.com",120,4,72,"script","URL"],["moatpixel.com",121,4,72,"script","URL"],["postrelease.com",122,4,73,"script","URL"],["ntv.io",123,4,73,"script","URL"],["adtechus.com",124,4,74,"script","URL"],["openx.net",125,4,75,"script","URL"],["odnxs.net",126,4,75,"script","URL"],["openx.org",127,4,75,"script","URL"],["openxenterprise.com",128,4,75,"script","URL"],["servedbyopenx.com",129,4,75,"script","URL"],["outbrain.js",130,4,76,"script","URL"],["ppjol.net",131,4,77,"script","URL"],["pubmatic.com",132,4,78,"script","URL"],["quantserve.com",133,4,79,"script","URL"],["gwallet.com",134,4,80,"script","URL"],["rfihub.com",135,4,81,"script","URL"],["rubiconproject.com",136,4,82,"script","URL"],["dpclk.com",137,4,82,"script","URL"],["mobsmith.com",138,4,82,"script","URL"],["nearbyad.com",139,4,82,"script","URL"],["chango.com",140,4,82,"script","URL"],["simpli.fi",141,4,83,"script","URL"],["sitescout.com",142,4,84,"script","URL"],["spotxchange.com",143,4,85,"script","URL"],["spotx.tv",144,4,85,"script","URL"],["spotxcdn.com",145,4,85,"script","URL"],["taboola.com",146,4,86,"script","URL"],["tapad.com",147,4,87,"script","URL"],["tiqcdn.com",148,4,88,"script","URL"],["adsrvr.org",149,4,89,"script","URL"],["townnews.com",150,4,90,"script","URL"],["tubemogul.com",151,4,91,"script","URL"],["turn.com",152,4,92,"script","URL"],["static.ads-twitter.com",153,4,93,"script","URL"],["tidaltv.com",154,4,94,"script","URL"],["yldbt.com",155,4,95,"script","URL"],["serve.albacross.com/track.js",156,4,40,"script","URL"],["cdn.azalead.com",157,4,99,"script","URL"],["b2btagmgr.azalead.com",158,4,99,"script","URL"],["marketingautomation.services/client/ss.js",159,4,100,"script","URL"],["hs-scripts.com",160,3,102,"script","URL"],["bat.bing.com/bat.js",161,4,103,"script","URL"],["gstatic.com/charts/loader.js",162,2,5,"script","URL"],["tiktok-analytics-sdk.js",163,4,104,"script","URL"],["metrika/tag.js",164,4,105,"script","URL"],["acdn.adnxs.com/dmp/up/pixie.js",165,4,106,"script","URL"]],n=[[2,1,"https://policies.google.com/privacy","Google Translate"],[2,2,"https://policies.google.com/privacy","Google Fonts"],[2,3,"https://policies.google.com/privacy","Google Recaptcha"],[2,4,"https://policies.google.com/privacy","Google Maps"],[2,5,"https://policies.google.com/privacy","Google Charts"],[2,6,"https://policies.google.com/privacy","Google Sign In"],[2,7,"https://policies.google.com/privacy","Google Apps"],[2,8,"https://policies.google.com/privacy","Google Search"],[2,9,"https://policies.google.com/privacy","Google Tag Manager"],[2,10,"https://policies.google.com/privacy","Youtube"],[2,11,"https://www.adobe.com/privacy.html","Adobe Dynamic Tag Manager"],[2,12,"https://www.adobe.com/privacy.html","LiveFyre"],[2,13,"https://help.disqus.com/en/articles/1717103-disqus-privacy-policy","Disqus"],[2,14,"https://twitter.com/en/privacy","Twitter"],[2,15,"https://help.instagram.com/519522125107875","Instagram"],[2,16,"https://www.linkedin.com/legal/privacy-policy","LinkedIn"],[2,17,"https://policy.pinterest.com/en/privacy-policy","Pinterest"],[2,18,"https://www.freshworks.com/privacy/","Freshchat"],[2,19,"https://uservoice.com/privacy","Uservoice"],[2,20,"https://www.olark.com/privacy-policy/","Olark"],[2,21,"https://elev.io/legal/privacy-policy","Elevio"],[3,22,"https://www.home.neustar/privacy","AdAdvisor by Neustar"],[3,23,"https://newrelic.com/termsandconditions/privacy","New Relic"],[3,24,"https://www.nielsen.com/us/en/legal/privacy-statement/digital-measurement/","Nielsen Online"],[3,25,"https://policies.yahoo.com/ie/en/yahoo/privacy/index.htm","Yahoo"],[3,26,"https://www.optimizely.com/privacy/","Optimizely"],[3,27,"https://www.parse.ly/privacy-policy","Parse.ly"],[3,28,"https://www.comscore.com/About/Privacy","Scorecard Research by comScore"],[3,29,"https://chartbeat.com/privacy","Chartbeat"],[3,30,"https://www.oracle.com/legal/privacy/addthis-privacy-policy.html","AddThis by Oracle"],[3,31,"https://sharethis.com/privacy/","ShareThis"],[3,32,"https://www.kissmetrics.io/privacy/","Kissmetrics"],[3,33,"https://segment.com/legal/privacy/","Segment IO"],[3,34,"https://policies.google.com/privacy","Google Analytics"],[4,35,"https://www.4wmarketplace.com/privacy_uk/","4w Marketplace"],[4,36,"https://www.addtoany.com/privacy","Add to Any"],[4,37,"https://site.adform.com/privacy-center/overview/","Adform"],[4,38,"https://www.adobe.com/privacy.html","Adobe Marketing Cloud"],[4,39,"https://www.nextroll.com/privacy","AdRoll"],[4,40,"https://albacross.com/privacy-policy/","Albacross"],[4,41,"https://privacy.aol.com/legacy/","Advertising.com by AOL"],[4,42,"https://www.mondadori.com/privacy-policy-eng","Altervista"],[4,43,"https://advertising.amazon.com/resources/ad-policy/en/gdpr","Amazon Associates"],[4,44,"https://better.fyi/trackers/adnxs.com/","AppNexus by Ad Nexus Media"],[4,45,"https://www.audiencescience.com/privacy-policy-highlights/","AudienceScience"],[4,46,"https://www.bidswitch.com/privacy-policy/","BidSwitch"],[4,47,"https://www.oracle.com/legal/privacy/marketing-cloud-data-cloud-privacy-policy.html","BlueKai by Oracle"],[4,48,"https://bombora.com/privacy/","Bombora"],[4,49,"https://policies.yahoo.com/ie/en/yahoo/privacy/index.htm","BrightRoll by Yahoo"],[4,50,"https://www.indexexchange.com/privacy/","Casale Media by Index Exchange"],[4,51,"https://www.criteo.com/privacy/","Criteo"],[4,52,"https://www.oracle.com/legal/privacy/marketing-cloud-data-cloud-privacy-policy.html","Datalogix by Oracle"],[4,53,"https://www.adobe.com/privacy.html","DemDex by Adobe"],[4,54,"https://policies.google.com/privacy","DoubleClick by Google"],[4,55,"https://better.fyi/trackers/adsymptotic.com/","Drawbridge"],[4,56,"https://dstillery.com/privacy-policy/","Dstillery"],[4,57,"https://www.nielsen.com/us/en/legal/privacy-statement/digital-measurement/","eXelate by Nielsen"],[4,58,"https://www.facebook.com/policy.php","Facebook"],[4,59,"https://corp.flipp.com/legal/privacy/","Flipp"],[4,60,"https://policies.google.com/privacy","Google Ads"],[4,61,"https://policies.google.com/privacy","Google Interactive Media Ads"],[4,62,"https://policies.google.com/privacy","Google Publisher Tags"],[4,63,"http://inform.com/privacy/","Inform"],[4,64,"https://better.fyi/trackers/ixiaa.com/","IXI Services"],[4,65,"https://sonobi.com/privacy-policy/","Jetstream by Sonobi"],[4,66,"https://www.salesforce.com/company/privacy/","Krux by Salesforce"],[4,67,"https://www.sovrn.com/legal/privacy-policy/","Lijit by Sovrn"],[4,68,"https://liveramp.com/privacy/","LIVERAMP by Acxiom"],[4,69,"https://www.lotame.com/about-lotame/privacy/","Lotame"],[4,70,"https://better.fyi/trackers/mookie1.com/","Media Innovation Group"],[4,71,"https://www.mediamath.com/legal/terms/policies/","MediaMath"],[4,72,"https://www.oracle.com/legal/privacy/","Moat by Oracle"],[4,73,"https://www.nativo.com/policies-and-guidelines","Nativo"],[4,74,"https://privacy.aol.com/legacy/","ONE Ad Server by AOL"],[4,75,"https://www.openx.com/legal/","OpenX"],[4,76,"https://www.outbrain.com/trust-and-transparency/","Outbrain"],[4,77,"https://better.fyi/trackers/ppjol.net/","Piano"],[4,78,"https://pubmatic.com/legal/privacy/","Pubmatic"],[4,79,"https://www.quantcast.com/privacy/","Quantcast"],[4,80,"https://better.fyi/trackers/gwallet.com/","RadiumOne"],[4,81,"https://www.gorocketfuel.com/about/privacy-policy/","Rocket Fuel"],[4,82,"https://rubiconproject.com/privacy/","Rubicon Project"],[4,83,"https://simpli.fi/simpli-fi-services-privacy-policy/","Simplifi"],[4,84,"https://www.sitescout.io/privacy_policy","SiteScout"],[4,85,"https://www.spotx.tv/privacy-policy/","SpotX"],[4,86,"https://www.taboola.com/policies/privacy-policy","Taboola"],[4,87,"https://www.tapad.com/privacy.html","Tapad"],[4,88,"https://tealium.com/privacy/","Tealium"],[4,89,"https://www.thetradedesk.com/general/privacy","The Trade Desk"],[4,90,"https://townnews.com/about/privacy/townnews-privacy-statement/article_307a1888-0000-11ea-bdf4-0b3ec0b9bcf5.html","TownNews"],[4,91,"https://www.adobe.com/privacy/experience-cloud.html","TubeMogul by Adobe"],[4,92,"https://www.amobee.com/trust/privacy-guidelines/","Turn by Amobee"],[4,93,"https://help.twitter.com/en/twitter-for-websites-ads-info-and-privacy","Twitter Ads"],[4,94,"https://www.amobee.com/trust/privacy-guidelines/","Videology by Amobee"],[4,95,"https://www.yieldbot.com/privacy-policy/","Yieldbot"],[3,96,"https://matomo.org/privacy-policy/","Matomo"],[3,97,"https://www.crazyegg.com/privacy","Crazy Egg"],[3,98,"https://www.linkedin.com/legal/privacy-policy","LinkedIn Insights"],[4,99,"https://jabmo.com/privacy-policy/","Jabmo"],[4,100,"https://sharpspring.com/legal/privacy/","SharpSpring"],[2,101,"https://vimeo.com/privacy","Vimeo"],[3,102,"https://legal.hubspot.com/privacy-policy","HubSpot"],[4,103,"https://www.microsoft.com/privacy/privacystatement","Bing (Universal Event Tracking)"],[4,104,"https://www.tiktok.com/legal/page/eea/privacy-policy/","TikTok"],[4,105,"https://yandex.com/legal/confidential/","Yandex Metrica"],[4,106,"https://www.microsoft.com/privacy/privacystatement","Xandr (Universal Pixel)"]];function s(){s=function(e,t){return new o(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function o(e,i,n){var s=RegExp(e,i);return t.set(s,n||t.get(e)),a(s,o.prototype)}function i(e,o){var i=t.get(o);return Object.keys(i).reduce((function(t,o){var n=i[o];if("number"==typeof n)t[o]=e[n];else{for(var s=0;void 0===e[n[s]]&&s+1]+)(>|$)/g,(function(e,t,o){if(""===o)return e;var i=s[t];return Array.isArray(i)?"$"+i.join("$"):"number"==typeof i?"$"+i:""})))}if("function"==typeof n){var a=this;return e[Symbol.replace].call(this,o,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(i(e,a)),n.apply(this,e)}))}return e[Symbol.replace].call(this,o,n)},s.apply(this,arguments)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=Array(t);o0)};this.getVar=function(e){return"sessionData"===e?M:"consentData"===e?I:"defaults"===e?D:"thresholdExceeded"===e?v:"textStrings"===e?C:"flags"===e?L:"teleData"===e?k:"currentTeleVideo"===e?A:null},this.getConfigVar=function(t){return"prefix"===t?e.Q.prefix:"contactImageUrl"===t?e.Q.contactImageUrl:null},this.setOptions=function(e,t){switch(void 0===e&&(e={}),void 0===t&&(t=""),"undefined"!=typeof huOptions&&"init"===t&&(e=huOptions||{},t="external"),t){case"init":case"external":for(var o in this.options=D,e)D.hasOwnProperty(o)&&(this.options[o]=this.mergeOptions(o,e[o],D[o]));for(var o in e.hasOwnProperty("cacheData")&&this.options.cache&&"db"===this.options.cacheType&&(_=e.cacheData),D)switch(o){case"text":if(e.hasOwnProperty(o)){var i=this.options.currentLanguage;"browser"===this.options.config.multilanguageMode&&(i=M.browserLanguage),C=e[o].hasOwnProperty(i)?e[o][i]:D[o].en}else C=D[o].en;break;case"categories":if(void 0!==C)for(var n=0,s=Object.entries(D[o]);n0&&this.options.analytics.visits>=this.options.analytics.threshold)&&(this.options.blocking=!1,this.consoleLog("banner","Displaying analytics data.",this.options.analytics))},this.mergeOptions=function(e,t,o){var i=null;if("object"==typeof x[e])switch(e){case"text":i={};for(var n=0,s=Object.entries(t);n0){i=[];for(var p=0;p0&&e.forEach((function(e){var t,o,n,s,a,r,c=((t={})[e.CategoryID]={Name:e.Name,CategoryID:e.CategoryID,Description:e.Description,DataLabel:e.hasOwnProperty("DataLabel")?e.DataLabel:e.DataAccessed.label,DataAccessed:{anonymous:e.DataAccessed.hasOwnProperty("anonymous")?e.DataAccessed.anonymous:"",pseudonymous:e.DataAccessed.hasOwnProperty("pseudonymous")?e.DataAccessed.pseudonymous:"",personal:e.DataAccessed.hasOwnProperty("personal")?e.DataAccessed.personal:"",sensitive:e.DataAccessed.hasOwnProperty("sensitive")?e.DataAccessed.sensitive:""}},t);Object.assign(D.categories,c),Object.assign(D.cookies,((o={})[e.CategoryID]={},o)),Object.assign(T.scripts,((n={})[e.CategoryID]=[],n)),Object.assign(T.iframes,((s={})[e.CategoryID]=[],s)),Object.assign(i.blockingData.foundScripts,((a={})[e.CategoryID]=[],a)),Object.assign(i.blockingData.foundIframes,((r={})[e.CategoryID]=[],r))})),t.length>0&&t.forEach((function(e){var t,o=((t={})[e.ProviderID]=e,t);Object.assign(D.providers,o)})),o.length>0&&o.forEach((function(e){var t,o=((t={})[e.Pattern]=e,t);o[e.Pattern].Provider=D.providers.hasOwnProperty(e.ProviderID)?D.providers[e.ProviderID]:{},Object.assign(D.cookies[e.CategoryID],o),"script"==e.PatternType?T.scripts[e.CategoryID].push(e.Pattern):T.iframes[e.CategoryID].push(e.Pattern)}))};this.prepareRawOptions=function(e){void 0===e&&(e={});var t={};if(!this._isEmpty(e))for(var i=0,n=Object.keys(D);i0){e.customPatterns=this.mergeOptions("customPatterns",e.customPatterns,D.customPatterns);for(var o,s=c(e.customPatterns);!(o=s()).done;){var a=o.value;if(P(a.CookieID,!0)&&P(a.ProviderID,!0))for(var r,l=c(i);!(r=l()).done;){var d=r.value;if("IsCustom"in a&&a.IsCustom&&a.Pattern===d[0]&&parseInt(a.CookieID)===d[1]&&parseInt(a.ProviderID)===d[3]&&a.PatternType===d[4]&&a.PatternFormat===d[5]){d[2]=parseInt(a.CategoryID);break}}else"string"!=typeof a.CookieID||!P(a.ProviderID,!0)&&"string"!=typeof a.ProviderID||i.push([a.Pattern,a.CookieID,a.CategoryID,a.ProviderID,a.PatternType,a.PatternFormat])}}if("customProviders"in e&&e.customProviders.length>0){e.customProviders=this.mergeOptions("customProviders",e.customProviders,D.customProviders);for(var p,g=c(e.customProviders);!(p=g()).done;){var u=p.value;if(P(u.ProviderID,!0))for(var h,m=c(n);!(h=m()).done;){var f=h.value;if("IsCustom"in u&&u.IsCustom&&parseInt(u.ProviderID)===f[1]){f[0]=parseInt(u.CategoryID),f[2]=u.ProviderURL,f[3]=u.ProviderName;break}}else"string"==typeof u.ProviderID&&n.push([u.CategoryID,u.ProviderID,u.ProviderURL,u.ProviderName])}}for(var y,v=[],b=[],k=[],w=c(t);!(y=w()).done;){var L=y.value;v.push({Name:L[0],Language:L[1],CategoryID:L[2],Description:L[3],DataLabel:L[4],DataAccessed:{anonymous:L[5][0],pseudonymous:L[5][1],personal:L[5][2]}})}for(var x,C=c(n);!(x=C()).done;){var T=x.value;b.push({CategoryID:T[0],ProviderID:T[1],ProviderURL:T[2],ProviderName:T[3]})}for(var E,O=c(i);!(E=O()).done;){var _=E.value;k.push({Pattern:_[0],CookieID:_[1],CategoryID:_[2],ProviderID:_[3],PatternType:_[4],PatternFormat:_[5]})}B.call(this,v,b,k)};this.compareVersions=function(e,t){for(var o=e.split(".").map(Number),i=t.split(".").map(Number),n=0;ni[n]?1:-1}return o.length!==i.length?-1:0},this.updateBlockingData=function(e,t,o,i){if(void 0===e&&(e="script"),void 0===t&&(t=0),void 0===o&&(o=""),void 0===i&&(i=!1),!o||!t)return!1;var n={};if("script"===e?this.blockingData.foundScripts[t].includes(o)||this.blockingData.foundScripts[t].push(o):this.blockingData.foundIframes[t].includes(o)||this.blockingData.foundIframes[t].push(o),D.cookies[t].hasOwnProperty(o)){var s,a=((s={})[(n=D.cookies[t][o].Provider).ProviderID]=n,s);Object.assign(this.blockingData.foundServices,a),this.blockingData.found++}return!0===i?(Object.keys(n).length>0&&(this.blockingData.blockedServices[n.ProviderID]=n),this.blockingData.blocked++):(Object.keys(n).length>0&&(this.blockingData.allowedServices[n.ProviderID]=n),this.blockingData.allowed++),!0},this.getBlockingData=function(){var e=r({},this.blockingData);return e.blocking=this.options.blocking,e},this.triggerEvent=function(e,t){void 0===e&&(e=""),void 0===t&&(t={});var o=e+"."+h,i=this._isEmpty(t)?null:t,n=new CustomEvent(o,{detail:i});-1===O.indexOf(o)&&(O.push(o),b!==document.addEventListener?b(o,this.eventHandler.bind(this),!0):document.addEventListener(o,this.eventHandler.bind(this),!1)),document.dispatchEvent(n)},this.didEvent=function(e){return-1!==O.indexOf(e)},this.eventHandler=function(e){this.handleEvent(e.type,e)},this.getActivity=function(){return!1===this.options.config.privacyTeller&&(delete U.play_why,delete U.play_why_closed,delete U.play_choices,delete U.play_choices_closed,delete U.play_policy,delete U.play_policy_closed,delete U.play_benefits,delete U.play_benefits_closed,delete U.play_consent,delete U.play_consent_closed,delete U.autoplay_consent,delete U.autoplay_consent_closed,delete U.teller_open,delete U.tele_link),U},this.handleEvent=function(e,t){void 0===e&&(e=""),void 0===t&&(t={});var o=this;switch(e){case"cookies-tools-close."+h:!0===this.options.config.privacyTeller&&this.stopTeleVideo(),U.close=!0,I.consentLevel>0?(M.consentLevel=I.consentLevel,M.categories=I.categories,this.hide()):("object"==typeof t.detail&&"nodeType"in t.detail&&t.detail.nodeType===Node.ELEMENT_NODE&&t.detail.classList.contains(h+"-notice-close")&&(U.method="close"),M.consent=!0,M.consentID=this._isEmpty(M.consentID)?this.generateID():M.consentID,this.options.config.onClose||(M.consentLevel=1,M.categories[4]=!1,M.categories[3]=!1,M.categories[2]=!1),this.options.previewMode||this.saveConsent(!0),this.options.blocking&&!this.options.previewMode&&(this.options.config.resetCookies&&this.clearCookies(),this.unblock(M.categories)),this.options.config.uiBlocking&&this.pageScrolling("enable"),this.hide(),!0!==this.options.config.reloading||this.options.previewMode||document.addEventListener("save-consent-response."+h,(function(){window.location.reload()})));break;case"cookies-unblock."+h:M.consent=!0,M.consentID=this._isEmpty(M.consentID)?this.generateID():M.consentID,M.consentLevel=2,M.categories[4]=!1,M.categories[3]=!0,M.categories[2]=!0,U.method="unblock",this.options.previewMode||this.saveConsent(!0),this.options.blocking&&!this.options.previewMode&&(this.options.config.resetCookies&&this.clearCookies(),this.unblock(M.categories)),this.options.config.uiBlocking&&this.pageScrolling("enable"),this.hide(),!0!==this.options.config.reloading||this.options.previewMode||document.addEventListener("save-consent-response."+h,(function(){window.location.reload()}));break;case"cookies-save."+h:if("object"==typeof t.detail&&("nodeType"in t.detail&&t.detail.nodeType===Node.ELEMENT_NODE&&t.detail.classList.contains(h+"-cookies-save")?U.method="save":"consentMethod"in t.detail&&(U.method=t.detail.consentMethod)),M.consent=!0,M.consentID=this._isEmpty(M.consentID)?this.generateID():M.consentID,!this.options.previewMode){var i=this.options.config.privacyTeller&&this.options.config.privacyTellerAutoplay&&"save"===U.method;i&&(U.autoplay_consent=!0),this.saveConsent(!0),i&&(A="consent_autoplay",this.playTeleVideo(k.autoplay[Math.floor(4*Math.random())].videoUrl))}this.options.blocking&&!this.options.previewMode&&(this.options.config.resetCookies&&this.clearCookies(),this.unblock(M.categories)),this.options.config.uiBlocking&&this.pageScrolling("enable"),this.hide(),!0!==this.options.config.reloading||this.options.previewMode||document.addEventListener("save-consent-response."+h,(function(){window.location.reload()}));break;case"open-tele-url."+h:case"cookies-notice-privacy."+h:case"cookies-notice-dontsell."+h:case"cookies-contact-details-3."+h:var n=t.detail.dataset[h+"Href"],s=t.detail.dataset[h+"Target"];e==="cookies-notice-privacy."+h?U.privacy=!0:e==="cookies-notice-dontsell."+h?U.dontsell=!0:e==="open-tele-url."+h&&(U.tele_link=!0),""!==n&&("_self"===s?window.location.href=this.sanitize("url",n):window.open(this.sanitize("url",n),"_blank"));break;case"cookies-preferences-categories-1."+h:case"cookies-preferences-categories-2."+h:case"cookies-preferences-categories-3."+h:case"cookies-preferences-categories-4."+h:var a=t.detail.checked,r=parseInt(t.detail.value),c=M.consentLevel,l=M.categories,d=[],p=[];if(U.categories=!0,M.categories.hasOwnProperty(r)){switch(M.categories[r]=a,r){case 4:!0===a?c<3&&(M.consentLevel=3,d=[h+"-cookies-notice-consent-choices-3-toggle"]):!1===a&&(!0===l[2]||!0===l[3]?(M.consentLevel=2,d=[h+"-cookies-notice-consent-choices-2-toggle"]):(M.consentLevel=1,d=[h+"-cookies-notice-consent-choices-1-toggle"]));break;case 3:case 2:!0===a?c<2&&(M.consentLevel=2,d=[h+"-cookies-notice-consent-choices-2-toggle"]):!1===l[2]&&!1===l[3]&&!1===l[4]&&(M.consentLevel=1,d=[h+"-cookies-notice-consent-choices-1-toggle"])}d.forEach((function(e){var t=document.getElementById(e);t&&(t.checked=!0)})),p.forEach((function(e){var t=document.getElementById(e);t&&(t.checked=!1)}));var g=document.getElementById(d[0]);g&&this.toggleVisibility(g)}break;case"cookies-notice-consent-choices-1."+h:case"cookies-notice-consent-choices-2."+h:case"cookies-notice-consent-choices-3."+h:if(r=parseInt(t.detail.value),U.levels=!0,[1,2,3].includes(r)){switch(d=[],p=[],r){case 3:d=[h+"-cookies-notice-consent-duration-"+r+"-toggle",h+"-cookies-preferences-categories-4-toggle",h+"-cookies-preferences-categories-3-toggle",h+"-cookies-preferences-categories-2-toggle"],M.categories[4]=!0,M.categories[3]=!0,M.categories[2]=!0;break;case 2:d=[h+"-cookies-notice-consent-duration-"+r+"-toggle",h+"-cookies-preferences-categories-3-toggle",h+"-cookies-preferences-categories-2-toggle"],p=[h+"-cookies-preferences-categories-4-toggle"],M.categories[4]=!1,M.categories[3]=!0,M.categories[2]=!0;break;default:d=[h+"-cookies-notice-consent-duration-"+r+"-toggle"],p=[h+"-cookies-preferences-categories-4-toggle",h+"-cookies-preferences-categories-3-toggle",h+"-cookies-preferences-categories-2-toggle"],M.categories[4]=!1,M.categories[3]=!1,M.categories[2]=!1}d.forEach((function(e){var t=document.getElementById(e);t&&(t.checked=!0)})),p.forEach((function(e){var t=document.getElementById(e);t&&(t.checked=!1)})),M.consentLevel=r,M.expiry=this.options.config.consentExpiry[r-1]}break;case"cookies-notice-consent-duration."+h:case"cookies-notice-consent-duration-1."+h:case"cookies-notice-consent-duration-2."+h:case"cookies-notice-consent-duration-3."+h:t.detail instanceof Element&&"SELECT"===t.detail.tagName?(r=parseInt(t.detail.value)-1,this.options.config.consentExpiry.hasOwnProperty(r)&&(M.expiry=this.options.config.consentExpiry[r])):t.detail instanceof PointerEvent&&"click"===t.detail.type&&(U.duration=!0);break;case"cookies-tools-download."+h:var u=I;U.download=!0,u.language=this.options.currentLanguage,u.url=this.getDomain(document.location.hostname),u.AppID=this.options.appID,this.generatePDF(u);break;case"cookies-notice-toggle."+h:var m=document.getElementById(h);"object"==typeof t.detail&&"nodeType"in t.detail&&t.detail.nodeType===Node.ELEMENT_NODE&&(t.detail.classList.contains(h+"-notice-maximize")?U.expand=!0:U.customize=!0),m&&m.classList.toggle(h+"-expanded");break;case"cookies-notice-revoke."+h:U.revoke=!0,this.reload();break;case"geolocation-update."+h:var f=!0===this.options.config.doNotTrackMode&&this.doNotTrack()||!0===this.options.config.gpcSupportMode&&this.gpcSupport(),y=this.options.blocking;if(!0===this.options.config.geolocation){var v=this.getGeolocationRules(),b={};"gdpr"in v&&(this.geolocationData.userInEU||this.geolocationData.companyInEU)?b=v.gdpr:!("ukpecr"in v)||"GB"!==this.geolocationData.userCountry&&"GB"!==this.geolocationData.companyCountry?!("popia"in v)||"ZA"!==this.geolocationData.userCountry&&"ZA"!==this.geolocationData.companyCountry?"US"===this.geolocationData.userCountry||"US"===this.geolocationData.companyCountry?!("ccpa"in v)||"CA"!==this.geolocationData.userState&&"CA"!==this.geolocationData.companyState?"otherus"in v&&(b=v.otherus):b=v.ccpa:!("pipeda"in v)||"CA"!==this.geolocationData.userCountry&&"CA"!==this.geolocationData.companyCountry?!("lgpd"in v)||"BR"!==this.geolocationData.userCountry&&"BR"!==this.geolocationData.companyCountry?"other"in v&&(b=v.other):b=v.lgpd:b=v.pipeda:b=v.popia:b=v.ukpecr,this._isEmpty(b)||(this.options=W.call(this,!0,this.options,{blocking:f||b.blocking,holdInit:!b.display,config:{privacyPolicyLink:b.privacy,dontSellLink:b.dontsell,revokeConsent:b.revoke}}))}!0===y&&!1===this.options.blocking&&this.blockingData.blocked>0&&this.unblock(!0);break;case"start-session."+h:case"update-session."+h:case"config-loaded."+h:if(this.options.version.config>0&&""!==M.sessionID&&e==="config-loaded."+h){if(L.configLoadedAfterObserver){if(this.options.blocking){if(this.consentModeData.facebook.pixel&&!this.options.config.facebookConsentMode&&(w=this.getElement("inline-script",h+"-facebook-pixel")).length>0&&void 0!==w[0].node.dataset.orgscript&&(w[0].node.dataset.script=w[0].node.dataset.orgscript,w[0].node.removeAttribute("data-orgscript")),this.consentModeData.microsoft.uet&&!this.options.config.microsoftConsentMode){var w;"inl"===consentModeData.microsoft.uetType&&(w=this.getElement("inline-script",h+"-microsoft-uet-inline")).length>0&&void 0!==w[0].node.dataset.orgscript&&(w[0].node.dataset.script=w[0].node.dataset.orgscript,w[0].node.removeAttribute("data-orgscript"));var D=document.querySelector("."+h+"-microsoft-uet-consent");D&&V.call(o,D)}this.consentModeData.microsoft.pixie&&!this.options.config.microsoftConsentModePixie&&(w=this.getElement("inline-script",h+"-microsoft-pixie")).length>0&&void 0!==w[0].node.dataset.orgscript&&(w[0].node.dataset.script=w[0].node.dataset.orgscript,w[0].node.removeAttribute("data-orgscript"))}L.interactiveEventFired||document.addEventListener("readystatechange",(function(){"interactive"===document.readyState&&(o.undelayElements("interactive"),!1===o.options.blocking&&o.blockingData.blocked>0&&o.unblock(!0))})),L.domEventFired||document.addEventListener("DOMContentLoaded",(function(){o.undelayElements("dom"),!1===o.options.blocking&&o.blockingData.blocked>0&&o.unblock(!0)})),L.completeEventFired||document.addEventListener("readystatechange",(function(){"complete"===document.readyState&&(o.undelayElements("complete"),!1===o.options.blocking&&o.blockingData.blocked>0&&o.unblock(!0))})),L.loadEventFired||window.addEventListener("load",(function(){o.undelayElements("load"),!1===o.options.blocking&&o.blockingData.blocked>0&&o.unblock(!0)})),L.loadEventFired&&!L.undelayElementsCalled&&(this.undelayElements("manual"),!1===this.options.blocking&&this.blockingData.blocked>0&&this.unblock(!0))}document.addEventListener("readystatechange",(function(){"interactive"!==document.readyState&&"complete"!==document.readyState||o.loadDependencies(!1,document.readyState)})),document.addEventListener("DOMContentLoaded",(function(){o.loadDependencies(!1,"dom")})),window.addEventListener("load",(function(){o.loadDependencies(!1,"load")}));var x=document.querySelector("script#__"+h+"_display");!L.loadEventFired||null!==x&&L.displayFileLoaded||this.loadDependencies(!1,"manual")}break;case"init-ready."+h:break;case"display-ready."+h:L.displayFileLoaded=!0,!0===this.options.config.privacyTeller&&"function"==typeof this.setTeleEvents&&!1===L.teleEventsLoaded&&(L.teleEventsLoaded=!0,this.setTeleEvents()),__hu.options.previewMode&&!L.forceInitAfterDependencies||("complete"===document.readyState?!1===this.options.holdInit&&this.init():window.addEventListener("load",(function(){o.triggerEvent("init-ready"),!1===o.options.holdInit&&o.init()}),!1));break;case"display."+h:var C=t.detail.querySelector(".hu-notice-protection");C&&C.addEventListener("mouseover",(function(){U.protection=!0}));break;case"consent-ready."+h:L.consentFileLoaded=!0;break;case"tele-videos-updated."+h:break;case"tele-ready."+h:"function"==typeof LoadPrivacyTellers&&(L.teleFileLoaded=!0,"function"==typeof this.setTeleEvents&&!1===L.teleEventsLoaded&&(L.teleEventsLoaded=!0,this.setTeleEvents()),this.updateTeleVideos());break;case"tele-menu-open."+h:U.teller_open=!0;break;case"play-tele."+h:if(!0===this.options.config.privacyTeller&&null!==t.detail.parentElement){var T="",E="",O=!1;if(t.detail.classList.contains(h+"-tele-option")?(O=t.detail.classList.contains("loading"),E=t.detail.getAttribute("data-tele-option"),T=t.detail.getAttribute("data-video")):t.detail.classList.contains(h+"-tele-label")&&(O=t.detail.parentElement.classList.contains("loading"),E=t.detail.parentElement.getAttribute("data-tele-option"),T=t.detail.parentElement.getAttribute("data-video")),O)break;"play_"+E in U&&(U["play_"+E]=!0,A=E),T&&E&&this.playTeleVideo(T)}break;case"stop-tele."+h:if(null===A||A!==t.detail.videoOption)break;A=null,"close"===t.detail.videoEndMethod&&("consent_autoplay"===t.detail.videoOption?U.autoplay_consent_closed=!0:"play_"+t.detail.videoOption+"_closed"in U&&(U["play_"+t.detail.videoOption+"_closed"]=!0));break;case"set-consent."+h:this.options.config.facebookConsentMode&&this.consentModeData.facebook.pixel&&this.updateFacebookConsentMode(t.detail.categories),this.options.config.microsoftConsentMode&&this.consentModeData.microsoft.uet&&F.call(this,"uet",t.detail.categories),this.options.config.microsoftConsentModePixie&&this.consentModeData.microsoft.pixie&&F.call(this,"pixie",t.detail.categories),this.options.config.googleConsentMode&&0!==this.consentModeData.google.methods.length&&this.updateGoogleConsentMode(t.detail.categories),!0===this.options.config.privacyTeller&&(this.stopTeleVideo(),this.updateTeleVideos())}this.consoleLog("banner",'Event "'+e+'" fired.',t)},this.updateTeleVideos=function(){k=LoadPrivacyTellers({language:this.options.currentLanguage,consentChoices:this.options.config.consentChoices,privacyPolicyUrl:C.privacyPolicyUrl,consentData:{level:I.consentLevel,time:I.timestamp,duration:I.expiry}}),L.teleDataReady=!0,L.displayFileLoaded&&this.updateTelePlaceholders(k)},this.prepareEvents=function(){var e=this,t=document.querySelectorAll("[data-"+h+"-action]");t.length>0&&t.forEach((function(t){var o=h+"Listener";["SELECT"].includes(t.tagName)?"true"!==t.getAttribute("data-"+h+"-listener")&&(t.dataset[o]=!0,t.addEventListener("change",(function(o){e.triggerEvent(t.dataset[[h+"Action"]],o.target)})),t.name===h+"-cookies-notice-consent-duration"&&t.addEventListener("click",(function(o){e.triggerEvent(t.dataset[[h+"Action"]],o)}))):"true"!==t.getAttribute("data-"+h+"-listener")&&(t.dataset[o]=!0,t.addEventListener("click",(function(o){-1!=["A","BUTTON"].indexOf(o.target.tagName)&&o.preventDefault(),e.triggerEvent(t.dataset[[h+"Action"]],o.target)})))}))},this.apiRequest=function(e,t){void 0===e&&(e=""),void 0===t&&(t={});var o="",i={},n=null;switch(e){case"save-session":o="/api/transactional/session/save",i={method:"POST"};break;case"save-consent":o="/api/transactional/event/save",i={method:"POST"};break;case"get-config":o="/api/designer/user-design-live",i={method:"GET"};break;case"generate-pdf":o="/api/account/files/consent-pdf",i={method:"POST"};break;case"save-privacy-consent":o="/api/transactional/privacy/save",i={method:"POST"}}return""!==e&&(n=this.request(o,t,i,e)),n},this.apiResponse=function(e,t){void 0===e&&(e=""),void 0===t&&(t={});var o={},i=new Date;switch(t.hasOwnProperty("data")&&(o=this._isEmpty(t.data)?{}:t.data),e){case"save-consent":this._isEmpty(o)||this.triggerEvent("save-consent",o);break;case"save-session":if(!this._isEmpty(o)){var n={userCountry:"Country"in o?o.Country:"",userState:"Subdivision"in o?o.Subdivision:"",userInEU:!("IsInEuropeanUnion"in o)||o.IsInEuropeanUnion||"CH"===o.Country||"IS"===o.Country||"LI"===o.Country||"NO"===o.Country};Object.assign(M.geo,n),this.setGeolocation(n),this.saveData("session",h+"-session",M),this.triggerEvent("update-session",o)}break;case"get-config":if(!this._isEmpty(o)){var s=this.prepareRawOptions(o);this.setOptions(s,"remote");var a={timestamp:i.getTime(),config:this.options.config,design:this.options.design,text:this.options.text,categories:this.options.categories,analytics:this.options.analytics,company:this.options.company,version:this.options.version};void 0===I.bannerConfigVersion&&(I.bannerConfigVersion=R.bannerConfigVersion),this.options.config.resetConsent&&this.options.version.config>I.lastVersion&&I.lastVersion>0&&(this.deleteCookie(),M.consent=null,I=R,this.consoleLog("banner","Consent cookie deleted.")),!this.options.cache||"local"!==this.options.cacheType&&"session"!==this.options.cacheType||(this.saveData(this.options.cacheType,h+"-config",a),this.triggerEvent("store-config",a)),this.consoleLog("banner","Configuration loaded (remotely).",s),this.triggerEvent("config-loaded",s)}break;case"generate-pdf":if(!this._isEmpty(o)){var r=o.Location,c=r.substring(r.lastIndexOf("/")+1),l=document.createElement("a");l.setAttribute("download",c),l.setAttribute("target","_blank"),l.href=r,document.body.appendChild(l),l.click(),l.remove()}}return o},this.request=function(e,t,o,i){void 0===e&&(e=""),void 0===t&&(t={}),void 0===o&&(o={}),void 0===i&&(i="");var n=this,s={},r={method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json; charset=utf-8"},redirect:"follow",referrerPolicy:"origin"},c="";if(-1!=["save-session","save-consent","save-privacy-consent"].indexOf(i)?(c=void 0!==e&&""!==e?l+e:l,r.headers["x-api-key"]=p):-1!=["generate-pdf"].indexOf(i)?(c=void 0!==e&&""!==e?d+e:d,r.headers["x-api-key"]=p):(c=void 0!==e&&""!==e?a+e:a,r.headers["Content-Type"]="application/x-www-form-urlencoded"),c=window.location.protocol+c,"GET"===(s=Object.assign(r,o)).method){var g=void 0!==t?Object.keys(t).map((function(e){return e+"="+t[e]})).join("&"):"";g&&(c=c+"?"+g)}else s.body=JSON.stringify(t);if(!("AppID"in t)||""===t.AppID.trim()){var u=!0;if("save-privacy-consent"===i&&"app_id"in t&&""!==t.app_id.trim()&&(u=!1),u)return void this.consoleLog("banner",'API request "'+i+'" failed: empty application ID.')}this.fetch(c,s).then((function(e){var t=e.headers.get("content-type"),o=null;return void 0!==t&&-1!==t.indexOf("application/json")&&(o=e.json()),o})).then((function(e){return n.consoleLog("banner",'API request "'+i+'" finished successfully.',e),null!==typeof e&&n.apiResponse(i,e),e})).catch((function(e){n.consoleLog("banner",'API request "'+i+'" failed.',e)})).finally((function(){n.triggerEvent(i+"-response")}))},this.fetch=function(e,t,o){return void 0===o&&(o=7e3),Promise.race([fetch(e,t),new Promise((function(e,t){return setTimeout((function(){return t(new Error("timeout"))}),o)}))])},this.loadDependencies=function(e,t){void 0===e&&(e=!1),void 0===t&&(t="manual");var o=document.querySelector("script#__"+h+"_display"),i=null;this.options.privacyConsent&&(i=document.querySelector("script#__"+h+"_consent"));var n=null;if(this.options.config.privacyTeller&&(n=document.querySelector("script#__"+h+"_tele")),!L.displayFileLoaded&&null===o||this.options.privacyConsent&&!L.consentFileLoaded&&null===i||this.options.config.privacyTeller&&!L.teleFileLoaded&&null===n){this.consoleLog("banner","Loading dependencies (method: "+t+").");var s=f,a=s.lastIndexOf("/");s=s.substring(0,a);var r="js";if(-1!==f.substring(a+1).indexOf("min.js")&&(r="min.js"),document.head.contains(m)||(m=document.querySelector('script[src*="'+y+'"]')),!0===this.options.config.privacyTeller&&!L.teleFileLoaded&&null===n){var c=this,l=document.createElement("script");""!==this.cspNonce&&(l.nonce=this.cspNonce),l.type="module",l.src=u,l.id="__"+h+"_tele",l.crossOrigin="",l.onload=function(){c.triggerEvent("tele-ready")},m.after(l)}if(!L.displayFileLoaded&&null===o){var d=document.createElement("script");""!==this.cspNonce&&(d.nonce=this.cspNonce),d.type="text/javascript",d.src=s+"/"+h+"-display."+r,d.id="__"+h+"_display",m.after(d)}if(this.options.privacyConsent&&!L.consentFileLoaded&&null===i){var p=document.createElement("script");""!==this.cspNonce&&(p.nonce=this.cspNonce),p.type="text/javascript",p.src=s+"/"+h+"-consent."+r,p.id="__"+h+"_consent",m.after(p)}e&&(L.forceInitAfterDependencies=!0)}},this.setTexts=function(e){void 0===e&&(e={});var t=C,o={};if(!this._isEmpty(e)){for(var i=0,n=Object.keys(D.categories);i0){var i=this.readData(this.options.cacheType,h+"-config");if(!this._isEmpty(i)){var n=parseInt(i.timestamp/1e3)||0;this.options.cacheTimestamp>n&&this.deleteData(this.options.cacheType,h+"-config")}}if(this.options.cache){if("local"===this.options.cacheType||"session"===this.options.cacheType)var s=this.readData(this.options.cacheType,h+"-config");else s=_;e=this._isEmpty(s)?{}:s,this._isEmpty(e)||t.getTime()0){var r=new Date,c=r;c.setTime(parseInt(r.getTime())+864e5*i),n=c.toUTCString()}this.options.globalCookie&&(s=this.getDomain(document.location.hostname)),"localhost"===document.location.hostname&&(a=document.location.pathname.split("/")[1]);var l="";"https:"===document.location.protocol&&(l=";secure"),document.cookie=t+"="+JSON.stringify(o)+";expires="+n+";path=/"+a+";domain="+s+l+";SameSite=Lax"}},this.readData=function(e,t){var o=null;return"session"===e?o="undefined"!=typeof Storage&&"sessionStorage"in window&&null!==window.sessionStorage?window.sessionStorage.getItem(t):this.readData("cookie",t):"local"===e?o="undefined"!=typeof Storage&&"localStorage"in window&&null!==window.localStorage?window.localStorage.getItem(t):this.readData("cookie",t):"cookie"===e&&(o=this.getCookie(t)),null===o?{}:JSON.parse(o)},this.deleteData=function(e,t){if("session"===e)"undefined"!=typeof Storage&&"sessionStorage"in window&&null!==window.sessionStorage?window.sessionStorage.removeItem(t):this.deleteData("cookie",t);else if("local"===e)"undefined"!=typeof Storage&&"localStorage"in window&&null!==window.localStorage?window.localStorage.removeItem(t):this.deleteData("cookie",t);else if("cookie"===e){var o="",i="";"localhost"===document.location.hostname&&(o=document.location.pathname.split("/")[1]),this.options.globalCookie&&(i=this.getDomain(document.location.hostname)),document.cookie=t+"= ;expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/"+o+";domain="+i}return!0},this.updateData=function(e,t,o,i){if(void 0===i&&(i=0),"session"===e)"undefined"!=typeof Storage&&"sessionStorage"in window&&null!==window.sessionStorage?window.sessionStorage.setItem(t,JSON.stringify(this.prepareData(e,t,o))):this.saveData("cookie",t,this.prepareData("cookie",t,o),0);else if("local"===e)"undefined"!=typeof Storage&&"localStorage"in window&&null!==window.localStorage?window.localStorage.setItem(t,JSON.stringify(this.prepareData(e,t,o))):this.saveData("cookie",t,this.prepareData("cookie",t,o),this.options.config.expiry);else if("cookie"===e){var n="";if(i>0){var s=new Date,a=s;a.setTime(parseInt(s.getTime())+864e5*i),n=a.toUTCString()}document.cookie=t+"="+JSON.stringify(this.prepareData(e,t,o))+";expires="+n}},this.prepareData=function(e,t,o){var i=this.readData(e,t);for(var n in o)o.hasOwnProperty(n)&&(i[n]=o[n]);return i},this.getCookie=function(e){var t={};return document.cookie.split(";").forEach((function(e){var o=e.split("="),i=o[0],n=o[1];t[i.trim()]=n})),void 0!==t[e]?t[e]:null},this.deleteCookie=function(){var e="",t="";this.options.globalCookie&&(e=this.getDomain(document.location.hostname)),"localhost"===document.location.hostname&&(t=document.location.pathname.split("/")[1]),document.cookie=h+"-consent=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/"+t+"; domain="+e},this.clearCookies=function(){for(var e=document.cookie.split("; "),t=0;t0;){var i=encodeURIComponent(e[t].split(";")[0].split("=")[0]);if(E.indexOf(i)>-1)break;var n=i+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain="+o.join(".")+" ;path=",s=location.pathname.split("/");for(document.cookie=n+"/",this.consoleLog("banner",'Clearing "'+i+'" cookie.');s.length>0;)document.cookie=n+s.join("/"),s.pop();o.shift()}return!1},this.observe=function(){var e=this;L.configLoadedAfterObserver=!this.didEvent("config-loaded."+h);var t={1:!0,2:!1,3:!1,4:!1};!0===M.consent&&(t=M.categories),t[1]=!0;var o=Object.entries(T.scripts),i=Object.entries(T.iframes),n=this;this.observer=new MutationObserver((function(s){s.forEach((function(s){!0===M.consent&&(t=M.categories),s.addedNodes.forEach((function(s){if(1===s.nodeType&&(!L.lockedObserver||L.msDelayExecution))if("SCRIPT"===s.tagName){var a=!0;if(""!==(D=s.src||"")){if(n.nodeData.scripts.external.push({node:s,order:n.nodeData.order++}),(L.configLoadedAfterObserver||n.options.config.googleConsentMode)&&n.consentModeData.google.methods.includes("gtm")&&n.consentModeData.google.scripts.gtm&&-1!==D.indexOf("googletagmanager.com/gtm.js")&&!s.classList.contains(h+"-google-tag-manager-js"))return void s.classList.add(h+"-google-tag-manager-js");if(s.classList.contains(h+"-block")){var r=s.hasAttribute("data-"+h+"-category")&&parseInt(s.getAttribute("data-"+h+"-category"))||2;n.options.config.customizeConsent&&(s.setAttribute("data-"+h+"-category",r),r in t&&!0===t[r]&&(a=!1)),(a=a&&n.options.blocking)?n.blockElement("external-script",s):s.classList.remove(h+"-block"),n.updateBlockingData("script",r,D,a)}else{var c=!1,l=!1;if((L.configLoadedAfterObserver||n.options.config.googleConsentMode)&&(n.consentModeData.google.updateOrder&&n.consentModeData.google.methods.includes("gtag")&&n.consentModeData.google.scripts.consent&&n.updateGoogleElementsOrder(),-1===D.indexOf("googletagmanager.com/gtag/js")||s.classList.contains(h+"-google-tag-js")||(s.classList.add(h+"-google-tag-js"),n.consentModeData.google.scripts.gtags++,n.consentModeData.google.methods.includes("gtag")||n.consentModeData.google.methods.push("gtag"),l=!0,n.consentModeData.google.scripts.consent||n.addGoogleConsentScript.call(n,s,t),L.configLoadedAfterObserver&&(n.options.blocking?!0===I.consent&&!0===I.categories[2]?n.delayElement("external-script",s):l=!1:n.delayElement("external-script",s)))),!L.configLoadedAfterObserver&&!n.options.config.facebookConsentMode||!n.consentModeData.facebook.pixel||n.consentModeData.facebook.events||-1===D.indexOf("connect.facebook.net/en_US/fbevents.js")||s.classList.contains(h+"-facebook-events-js")||(n.consentModeData.facebook.events=!0,s.classList.add(h+"-facebook-events-js"),n.options.config.facebookConsentMode?l=!0:n.options.blocking?!0===I.consent&&!0===I.categories[4]?n.delayElement("external-script",s):l=!1:n.delayElement("external-script",s)),(L.configLoadedAfterObserver||n.options.config.microsoftConsentModePixie)&&(-1===D.indexOf("acdn.adnxs.com/dmp/up/pixie.js")||n.consentModeData.microsoft.pixieJS||(n.consentModeData.microsoft.pixieJS=!0,s.classList.add(h+"-microsoft-pixie-js"),l=!0)),L.configLoadedAfterObserver||n.options.config.microsoftConsentMode)if(n.consentModeData.microsoft.uet){if(-1!==D.indexOf("bat.bing.com/bat.js")&&!n.consentModeData.microsoft.bat&&(n.consentModeData.microsoft.bat=!0,l=!0,L.configLoadedAfterObserver&&(n.options.blocking?!0===I.consent&&!0===I.categories[4]?n.delayElement("external-script",s):L.msDelayExecution||n.options.config.microsoftConsentMode||(l=!1):n.delayElement("external-script",s)),""===n.consentModeData.microsoft.uetCons)){var d=document.querySelector("."+h+"-microsoft-uet-consent");if(n.options.config.microsoftConsentMode?J.call(n,d,t):d&&V.call(n,d),L.msDelayExecution&&(L.msDelayExecution=!1,N.call(e),w.length>0)){for(var p in w)n.undelayElement(w[p][0],w[p][1],w[p][2]);w=[]}}}else-1!==D.indexOf("uet-tag.js")&&"uet-tag-script-js"===s.id&&(n.consentModeData.microsoft.uet=!0,n.consentModeData.microsoft.uetType="ext",s.classList.add(h+"-microsoft-uet-external"),q.call(n,s),l=!0,L.configLoadedAfterObserver&&n.delayElement("external-script",s));if(L.configLoadedAfterObserver&&"woocommerce-google-analytics-integration-js"===s.id&&(l=!0,s.classList.add(h+"-woo-google-analytics-js"),n.consentModeData.google.scripts.wcga=!0,n.delayElement("external-script",s)),!l)for(var g=0,u=o;g

'+C.unblockBodyText+'

",e.parentElement.style.position="relative",e.parentElement.appendChild(t)},this.removeIframeOverlay=function(e){var t=e.parentElement.getElementsByClassName(h+"-iframe-overlay");t.length>0&&t[0].remove()},this.updateIframeOverlay=function(){var e=document.getElementsByClassName(h+"-iframe-overlay");if(e.length>0)for(var t=0;t0&&e[t].classList.add(h+"-visible")},this.unblock=function(e){if(void 0===e&&(e={1:!0,2:!1,3:!1,4:!1}),!L.unblockElementsCalled){!0===e&&(e={1:!0,2:!0,3:!0,4:!0},L.unblockElementsCalled=!0),e[1]=!0,this.consoleLog("banner","Unblocking elements.",e);var t=this.getElementsSorted(),o=0;if(this.stopObserver(),t.length>0)for(var i=0;i0&&this.triggerEvent("cookies-unblocked",{data:this.blockingData.unblocked,categories:e}),this.startObserver()}},this.getElementsSorted=function(){var e=this.nodeData.iframes.concat(this.nodeData.scripts.external,this.nodeData.scripts.inline,this.nodeData.links);return e.sort((function(e,t){return e.order-t.order})),e},this.getElement=function(e,t){var o=[];if("external-script"===e)for(var i=0;i0&&(n[0].node.classList.contains(h+"-delayed")||this.options.config.facebookConsentMode)&&(t[n[0].order]=["inline-script",n[0].node,"f"]),(n=this.getElement("inline-script",h+"-facebook-fbq-custom")).length>0))for(var o in n)(n[o].node.classList.contains(h+"-delayed")||this.options.config.facebookConsentMode)&&(t[n[o].order]=["inline-script",n[o].node,""]);if(this.consentModeData.microsoft.uet){var i="";if("inl"===this.consentModeData.microsoft.uetType?i="inline":"ext"===this.consentModeData.microsoft.uetType&&(i="external"),(n=this.getElement(i+"-script",h+"-microsoft-uet-"+i)).length>0&&(n[0].node.classList.contains(h+"-delayed")||this.options.config.microsoftConsentMode)&&(t[n[0].order]=[i+"-script",n[0].node,"mu"]),(n=this.getElement("inline-script",h+"-microsoft-uet-custom")).length>0)for(var o in n)(n[o].node.classList.contains(h+"-delayed")||this.options.config.microsoftConsentMode)&&(t[n[o].order]=["inline-script",n[o].node,""])}if(this.consentModeData.microsoft.pixie&&(n=this.getElement("inline-script",h+"-microsoft-pixie")).length>0&&(n[0].node.classList.contains(h+"-delayed")||this.options.config.microsoftConsentModePixie)&&(t[n[0].order]=["inline-script",n[0].node,"mp"]),this.consentModeData.google.methods.includes("gtag")){var n;if((n=this.getElement("inline-script",h+"-google-tag-consent")).length>0&&n[0].node.classList.contains(h+"-delayed")&&(""===n[0].node.innerHTML&&!this.options.config.googleConsentMode&&n[0].node.classList.contains(h+"-new-script")?(this.consoleLog("banner","Deleting Google consent script."),this.removeElement("inline-script",n[0].node),n[0].node.remove()):t[n[0].order]=["inline-script",n[0].node,"g"]),(n=this.getElement("external-script",h+"-google-tag-js")).length>0)for(var o in n)(n[o].node.classList.contains(h+"-delayed")||this.options.config.googleConsentMode)&&(t[n[o].order]=["external-script",n[o].node,""]);if((n=this.getElement("inline-script",h+"-google-tag-config")).length>0)for(var o in n)n[o].node.classList.contains(h+"-delayed")&&(t[n[o].order]=["inline-script",n[o].node,""])}this.consentModeData.google.methods.includes("gtm")&&((n=this.getElement("inline-script",h+"-google-tag-consent")).length>0&&n[0].node.classList.contains(h+"-delayed")&&(""===n[0].node.innerHTML&&!this.options.config.googleConsentMode&&n[0].node.classList.contains(h+"-new-script")?(this.consoleLog("banner","Deleting Google consent script."),this.removeElement("inline-script",n[0].node),n[0].node.remove()):t[n[0].order]=["inline-script",n[0].node,"g"]),(n=this.getElement("inline-script",h+"-google-tag-manager")).length>0&&(n[0].node.classList.contains(h+"-delayed")||this.options.config.googleConsentMode)&&(t[n[0].order]=["inline-script",n[0].node,""])),this.consentModeData.google.scripts.wcga&&(n=this.getElement("external-script",h+"-woo-google-analytics-js")).length>0&&n[0].node.classList.contains(h+"-delayed")&&(t[n[0].order]=["external-script",n[0].node,""]);var s=!1;if(t.length>0)for(var o in t){if("mu"===t[o][2]&&"main"!==this.consentModeData.microsoft.uetCons)z.call(this),L.msDelayExecution=!0,s=!0;else if(s){w.push(t[o]);continue}this.undelayElement(t[o][0],t[o][1],t[o][2])}L.lockedObserver&&z.call(this)}};var N=function(){H.call(this,"lockedObserver",!0,"Observer locked.")},z=function(){H.call(this,"lockedObserver",!1,"Observer unlocked.")},H=function(e,t,o){void 0===o&&(o=""),L[e]=t,this.consoleLog("banner",o||(t?"Enabled ":"Disabled ")+e+" flag.")};this.updateFacebookConsentMode=function(e){var t=e[this.options.config.facebookConsentMapConsent]?"grant":"revoke";this.consoleLog("banner","Updating Facebook consent.","Consent "+("grant"===t?"granted":"denied")+"."),this.triggerEvent("facebook-consent-updated",t),fbq("consent",t)},this.applyFacebookConsentMode=function(e,t){var o=!1,i=/fbq\(\s*["|']consent["|'],\s*["|']([^]*?)["|']\s*\);/.exec(e),n=t[this.options.config.facebookConsentMapConsent]?"grant":"revoke";return null!==i&&2===i.length?(o=!0,e=e.replace(i[0],"fbq('consent', '"+n+"');")):null!==(i=/fbq\(\s*["|']init["|'],\s*["|'](?:[^]*?)["|']\s*\);/.exec(e))&&1===i.length&&(o=!0,this.options.blocking||M.consent||(n="grant"),e=e.replace(i[0],"fbq('consent', '"+n+"');\n"+i[0])),o&&(this.consoleLog("banner","Applying Facebook consent.","Consent "+("grant"===n?"granted":"denied")+"."),this.triggerEvent("facebook-consent-set",{consent:n})),e};var F=function(e,t){var o=t[this.options.config.microsoftConsentMapAdStorage]?"granted":"denied";this.consoleLog("banner","Updating Microsoft consent.","Ad storage "+o+"."),this.triggerEvent("microsoft-consent-updated",{ad_storage:o}),"uet"===e?(window.uetq=window.uetq||[],window.uetq.push("consent","update",{ad_storage:o})):"pixie"===e&&pixie("consent","update",{ad_storage:o})},G=function(e,t,o){var i=!1,n=t.innerHTML||"",a=o[this.options.config.microsoftConsentMapAdStorage]?"granted":"denied";if("uet"===e)if(""===n)this.options.blocking||M.consent||(a="granted"),i=!0,n="window.uetq.push('consent','default',{ad_storage:'"+a+"'});";else{var r=!0;this.options.blocking||M.consent||(r=!1);var c=s(/window[^]uetq[^]push\(\s*["|']consent["|'],\s*["|'](?:default)["|'],\s*\{(?:[^]*?)(?=[^]*?(?:(["|']?ad_storage["|']?\s*:\s*["|'](granted|denied)["|']))|)(?:[^]*?)(,?\s*\}\s*\))/,{ad:1,ad2:2,end:3}).exec(n);if(null!==c){var l=[];i=!0,void 0!==c.groups.ad&&""!==c.groups.ad?(a=r?a:c.groups.ad2,n=n.replace(c.groups.ad,"ad_storage: '"+a+"'")):(a=r?a:"granted",l.push("ad_storage: '"+a+"'")),l.length>0&&void 0!==c.groups.end&&""!==c.groups.end&&(n=n.replace(c.groups.end,",\n"+l.join(",\n")+"})"))}}else if("pixie"===e){var d=!0;this.options.blocking||M.consent||(d=!1);var p=s(/pixie\(\s*["|']consent["|'],\s*["|'](?:default)["|'],\s*\{(?:[^]*?)(?=[^]*?(?:(["|']?ad_storage["|']?\s*:\s*["|'](granted|denied)["|']))|)(?:[^]*?)(,?\s*\}\s*\))/,{ad:1,ad2:2,end:3}).exec(n);if(null!==p){var g=[];i=!0,void 0!==p.groups.ad&&""!==p.groups.ad?(a=d?a:p.groups.ad2,n=n.replace(p.groups.ad,"ad_storage: '"+a+"'")):(a=d?a:"granted",g.push("ad_storage: '"+a+"'")),g.length>0&&void 0!==p.groups.end&&""!==p.groups.end&&(n=n.replace(p.groups.end,",\n"+g.join(",\n")+"})"))}else null!==(p=/pixie\(\s*["|']init["|'],\s*["|'](?:[^]*?)["|']\s*\);/.exec(n))&&1===p.length&&(i=!0,this.options.blocking||M.consent||(a="granted"),n=n.replace(p[0],"pixie('consent','default',{'ad_storage':'"+a+"'});\n"+p[0]));i&&(this.consentModeData.microsoft.pixieCons=!0,t.classList.add(h+"-microsoft-pixie-consent"))}return i&&(this.consoleLog("banner","Applying Microsoft consent ("+e+").","Ad storage "+a+"."),this.triggerEvent("microsoft-consent-set",{ad_storage:a})),n},q=function(e){var t=document.createElement("script");""!==S&&(t.nonce=S),t.innerHTML="",t.type="text/javascript",t.classList.add(h+"-microsoft-uet-consent"),e.after(t)},J=function(e,t){var o=document.createElement("script");""!==S&&(o.nonce=S),L.configLoadedAfterObserver&&!this.options.config.microsoftConsentMode&&(o.dataset.orgscript=JSON.stringify(o.innerHTML)),o.innerHTML=G.call(this,"uet",null,t),o.type="text/javascript",o.classList.add(h+"-microsoft-uet-consent"),o.classList.add(h+"-new-script"),L.configLoadedAfterObserver&&(this.delayElement("inline-script",o),this.nodeData.scripts.inline.push({node:o,order:this.nodeData.order++})),e.replaceWith(o),this.consentModeData.microsoft.uetCons="after"},V=function(e){this.consoleLog("banner","Deleting Microsoft consent script."),e.remove()};this.updateGoogleConsentMode=function(e){var t={analytics_storage:e[this.options.config.googleConsentMapAnalytics]?"granted":"denied",ad_storage:e[this.options.config.googleConsentMapAdStorage]?"granted":"denied",ad_personalization:e[this.options.config.googleConsentMapAdPersonalization]?"granted":"denied",ad_user_data:e[this.options.config.googleConsentMapAdUserData]?"granted":"denied",functionality_storage:e[this.options.config.googleConsentMapFunctionality]?"granted":"denied",personalization_storage:e[this.options.config.googleConsentMapPersonalization]?"granted":"denied",security_storage:e[this.options.config.googleConsentMapSecurity]?"granted":"denied"};this.consoleLog("banner","Updating Google consent.","Analytics storage "+t.analytics_storage+".\nFunctionality storage "+t.functionality_storage+".\nPersonalization storage "+t.personalization_storage+".\nSecurity storage "+t.security_storage+".\nAd storage "+t.ad_storage+".\nAd personalization "+t.ad_personalization+".\nAd user data "+t.ad_user_data+"."),gtag("consent","update",t),this.triggerEvent("google-consent-updated",t),window.dataLayer&&window.dataLayer.push({event:"CC Consent Updated"})},this.applyGoogleConsentMode=function(e,t,o){var i=t[this.options.config.googleConsentMapAnalytics]?"granted":"denied",n=t[this.options.config.googleConsentMapAdStorage]?"granted":"denied",a=t[this.options.config.googleConsentMapAdPersonalization]?"granted":"denied",r=t[this.options.config.googleConsentMapAdUserData]?"granted":"denied",c=t[this.options.config.googleConsentMapFunctionality]?"granted":"denied",l=t[this.options.config.googleConsentMapPersonalization]?"granted":"denied",d=t[this.options.config.googleConsentMapSecurity]?"granted":"denied";if(this.options.blocking&&L.configLoadedAfterObserver&&(this._isEmpty(this.options.googleConsentDefault)||("analytics_storage"in this.options.googleConsentDefault&&1===this.options.googleConsentDefault.analytics_storage&&(i="granted"),"ad_storage"in this.options.googleConsentDefault&&1===this.options.googleConsentDefault.ad_storage&&(n="granted"),"ad_personalization"in this.options.googleConsentDefault&&1===this.options.googleConsentDefault.ad_personalization&&(a="granted"),"ad_user_data"in this.options.googleConsentDefault&&1===this.options.googleConsentDefault.ad_user_data&&(r="granted"),"functionality_storage"in this.options.googleConsentDefault&&1===this.options.googleConsentDefault.functionality_storage&&(c="granted"),"personalization_storage"in this.options.googleConsentDefault&&1===this.options.googleConsentDefault.personalization_storage&&(l="granted"),"security_storage"in this.options.googleConsentDefault&&1===this.options.googleConsentDefault.security_storage&&(d="granted"))),""===e)this.options.blocking||M.consent||(i="granted",n="granted",a="granted",r="granted",c="granted",l="granted",d="granted"),e="window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('consent','default',{\nad_storage: '"+n+"',\nad_personalization: '"+a+"',\nad_user_data: '"+r+"',\nanalytics_storage: '"+i+"',\nfunctionality_storage: '"+c+"',\npersonalization_storage: '"+l+"',\nsecurity_storage: '"+d+"'});";else{var p=!0;this.options.blocking||M.consent||(p=!1);var g=null!==o&&"woocommerce-google-analytics-integration-gtag-js-after"===o.id;if(g)var u=s(/(const\s*mode\s*of\s*\[)({|\[|\])(?=[^]*?(?:(["|']?ad_storage["|']?\s*:\s*["|'](granted|denied)["|']))|)(?=[^]*?(?:(["|']?ad_personalization["|']?\s*:\s*["|'](granted|denied)["|']))|)(?=[^]*?(?:(["|']?ad_user_data["|']?\s*:\s*["|'](granted|denied)["|']))|)(?=[^]*?(?:(["|']?analytics_storage["|']?\s*:\s*["|'](granted|denied)["|']))|)(?=[^]*?(?:(["|']?functionality_storage["|']?\s*:\s*["|'](granted|denied)["|']))|)(?=[^]*?(?:(["|']?personalization_storage["|']?\s*:\s*["|'](granted|denied)["|']))|)(?=[^]*?(?:(["|']?security_storage["|']?\s*:\s*["|'](granted|denied)["|']))|)(?:[^]*?)/g,{start:1,bracket:2,ad:3,ad2:4,ap:5,ap2:6,ud:7,ud2:8,an:9,an2:10,fn:11,fn2:12,pe:13,pe2:14,se:15,se2:16}).exec(e);else u=s(/gtag\(\s*["|']consent["|'],\s*["|'](?:update|default)["|'],\s*\{(?:[^]*?)(?=[^]*?(?:(["|']?ad_storage["|']?\s*:\s*["|'](granted|denied)["|']))|)(?=[^]*?(?:(["|']?ad_personalization["|']?\s*:\s*["|'](granted|denied)["|']))|)(?=[^]*?(?:(["|']?ad_user_data["|']?\s*:\s*["|'](granted|denied)["|']))|)(?=[^]*?(?:(["|']?analytics_storage["|']?\s*:\s*["|'](granted|denied)["|']))|)(?=[^]*?(?:(["|']?functionality_storage["|']?\s*:\s*["|'](granted|denied)["|']))|)(?=[^]*?(?:(["|']?personalization_storage["|']?\s*:\s*["|'](granted|denied)["|']))|)(?=[^]*?(?:(["|']?security_storage["|']?\s*:\s*["|'](granted|denied)["|']))|)(?:[^]*?)(,?\s*\}\s*\))/,{ad:1,ad2:2,ap:3,ap2:4,ud:5,ud2:6,an:7,an2:8,fn:9,fn2:10,pe:11,pe2:12,se:13,se2:14,end:15}).exec(e);if(null!==u){var h=[];void 0!==u.groups.ad&&""!==u.groups.ad?(n=p?n:u.groups.ad2,e=e.replace(u.groups.ad,"ad_storage: '"+n+"'")):(n=p?n:"granted",h.push("ad_storage: '"+n+"'")),void 0!==u.groups.ap&&""!==u.groups.ap?(a=p?a:u.groups.ap2,e=e.replace(u.groups.ap,"ad_personalization: '"+a+"'")):(a=p?a:"granted",h.push("ad_personalization: '"+a+"'")),void 0!==u.groups.ud&&""!==u.groups.ud?(r=p?r:u.groups.ud2,e=e.replace(u.groups.ud,"ad_user_data: '"+r+"'")):(r=p?r:"granted",h.push("ad_user_data: '"+r+"'")),void 0!==u.groups.an&&""!==u.groups.an?(i=p?i:u.groups.an2,e=e.replace(u.groups.an,"analytics_storage: '"+i+"'")):(i=p?i:"granted",h.push("analytics_storage: '"+i+"'")),void 0!==u.groups.fn&&""!==u.groups.fn?(c=p?c:u.groups.fn2,e=e.replace(u.groups.fn,"functionality_storage: '"+c+"'")):(c=p?c:"granted",h.push("functionality_storage: '"+c+"'")),void 0!==u.groups.pe&&""!==u.groups.pe?(l=p?l:u.groups.pe2,e=e.replace(u.groups.pe,"personalization_storage: '"+l+"'")):(l=p?l:"granted",h.push("personalization_storage: '"+l+"'")),void 0!==u.groups.se&&""!==u.groups.se?(d=p?d:u.groups.se2,e=e.replace(u.groups.se,"security_storage: '"+d+"'")):(d=p?d:"granted",h.push("security_storage: '"+d+"'")),h.length>0&&(g?void 0!==u.groups.start&&""!==u.groups.start&&void 0!==u.groups.bracket&&""!==u.groups.bracket&&("{"===u.groups.bracket?e=e.replace(u.groups.start+"{",u.groups.start+"{"+h.join(",")+","):"["===u.groups.bracket?e=e.replace(u.groups.start+"[]",u.groups.start+"{"+h.join(",")+"}"):"]"===u.groups.bracket&&(e=e.replace(u.groups.start,u.groups.start+"{"+h.join(",")+"}"))):void 0!==u.groups.end&&""!==u.groups.end&&(e=e.replace(u.groups.end,",\n"+h.join(",\n")+"})")))}}return this.consoleLog("banner","Applying Google consent.","Analytics storage "+i+".\nFunctionality storage "+c+".\nPersonalization storage "+l+".\nSecurity storage "+d+".\nAd storage "+n+".\nAd personalization "+a+".\nAd user data "+r+"."),this.triggerEvent("google-consent-set",{analytics_storage:i,ad_storage:n,ad_personalization:a,ad_user_data:r,functionality_storage:c,personalization_storage:l,security_storage:d}),e+"\nwindow.dataLayer.push({'event':'CC Consent Set'});"},this.addGoogleConsentScript=function(e,t){var o=document.createElement("script");""!==S&&(o.nonce=S),L.configLoadedAfterObserver&&!this.options.config.googleConsentMode&&(o.dataset.orgscript=JSON.stringify(o.innerHTML)),o.innerHTML=this.applyGoogleConsentMode("",t,null),o.type="text/javascript",o.classList.add(h+"-google-tag-consent"),o.classList.add(h+"-new-script"),L.configLoadedAfterObserver&&(this.delayElement("inline-script",o),this.nodeData.scripts.inline.push({node:o,order:this.nodeData.order++})),e.before(o),this.consentModeData.google.scripts.consent=!0,this.consentModeData.google.updateOrder=!0},this.updateGoogleElementsOrder=function(){var e=null,t=null;if(this.consentModeData.google.methods.includes("gtm"))for(var o=0;o0&&"regulations"in t&&!this._isEmpty(t.regulations))for(var o in t.geolocationRules)t.regulations[t.geolocationRules[o].name]?e[t.geolocationRules[o].name]={blocking:t.geolocationRules[o].blocking,display:t.geolocationRules[o].display,dontsell:t.geolocationRules[o].doNotSell,privacy:t.geolocationRules[o].privacy,revoke:t.geolocationRules[o].revoke}:"other"===t.geolocationRules[o].name&&(e.other={blocking:t.geolocationRules[o].blocking,display:t.geolocationRules[o].display,dontsell:t.geolocationRules[o].doNotSell,privacy:t.geolocationRules[o].privacy,revoke:t.geolocationRules[o].revoke});else e.gdpr={blocking:t.geolocationEUblocking,display:t.geolocationEUdisplay,dontsell:t.geolocationEUdontsell,privacy:t.geolocationEUprivacy,revoke:t.geolocationEUrevoke},e.otherus={blocking:t.geolocationUSblocking,display:t.geolocationUSdisplay,dontsell:t.geolocationUSdontsell,privacy:t.geolocationUSprivacy,revoke:t.geolocationUSrevoke},e.ccpa=e.otherus,e.other={blocking:t.geolocationORblocking,display:t.geolocationORdisplay,dontsell:t.geolocationORdontsell,privacy:t.geolocationORprivacy,revoke:t.geolocationORrevoke};return e},this.setGeolocation=function(e){void 0===e&&(e={}),Object.assign(this.geolocationData,e),this.triggerEvent("geolocation-update",this.geolocationData),this.consoleLog("banner","Geolocation data saved.",this.geolocationData)},this.isBot=function(e){return void 0===e&&(e=""),""===e&&(e=navigator.userAgent),new RegExp("("+[" Daum/"," DeuSu/"," splash "," um-LN/","(^|\\s)Site","^<","^12345","^<","^\\[","^Ace Explorer","^acoon","^ActiveBookmark","^ActiveRefresh","^ActiveWorlds","^Ad Muncher","^AHC/","^Amazon CloudFront","^Apache","^ApplicationHealthService","^asafaweb\\.com","^asynchttp","^axios/","^Azureus","^biglotron","^binlar","^Blackboard Safeassign","^BlockNote.Net","^Browsershots","^btwebclient/","^CakePHP","^Camo Asset Proxy","^ClamAV[\\s/]","^Client","^cobweb/","^coccoc","^Custom$","^DAP ","^DavClnt","^Dispatch/\\d","^Disqus/","^DuckDuckGo","^eCatch/","^Embedly","^Evernote Clip Resolver","^facebook","^Faraday","^fasthttp$","^FDM \\d","^FDM/\\d","^FlashGet","^Friendica","^GetRight/","^GigablastOpenSource","^Go \\d.\\d package http","^Go-http-client","^googal","^Goose","^GreenBrowser","^GuzzleHttp","^Hatena","^Hexometer","^Hobbit","^Hotzonu","^http","^HWCDN/","^ICE Browser","^ichiro","^infoX-WISG","^INGRID/\\d","^Integrity/","^java","^Jeode/","^JetBrains","^Jetty/","^Jigsaw","^libtorrent","^libwww","^linkdex","^lua-resty-http","^lwp-","^LWP::Simple","^MailChimp\\.com$","^MetaURI","^Microsoft BITS","^Microsoft Data","^Microsoft Office Existence","^Microsoft Office Protocol Discovery","^Microsoft Windows Network Diagnostics","^Microsoft-CryptoAPI","^Microsoft-WebDAV-MiniRedir","^Monit","^MovableType","^Mozilla/4\\.0 \\(compatible;\\)$","^Mozilla/5\\.0 \\(compatible(; Optimizer)?\\)","^Mozilla/5\\.0 \\(en-us\\) AppleWebKit/525\\.13 \\(KHTML, like Gecko\\) Version/3\\.1 Safari/525\\.13","^Mozilla/5\\.0 \\(Macintosh; Intel Mac OS X 10_15\\) AppleWebKit/605\\.1\\.15 \\(KHTML, like Gecko\\) Mobile/15E148 DuckDuckGo/7","^Mozilla/5\\.0 \\(Windows; rv:\\d{2}\\.0\\) Gecko/20100101 Firefox/\\d{2}\\.0$","^Mozilla/\\d\\.\\d \\(compatible\\)$","^muCommander","^My browser$","^NaverMailApp","^NetSurf","^NING","^node-superagent","^NokiaC3-00/5\\.0","^NoteTextView","^Nuzzel","^Offline Explorer","^okhttp","^OSSProxy","^panscient","^Pcore-HTTP","^photon/","^PHP","^Postman","^postrank","^python","^RamblerMail","^raynette_httprequest","^Ruby$","^Scrapy","^selenium/","^set:","^Shareaza","^ShortLinkTranslate","^SignalR","^Sistrix","^snap$","^Snapchat","^Space Bison","^Spring ","^Sprinklr","^SVN","^swcd ","^T-Online Browser","^Taringa","^Test Certificate Info","^The Knowledge AI","^Thinklab","^thumb","^Traackr.com","^Transmission","^tumblr/","^Ubuntu APT-HTTP","^UCmore","^Upflow/","^USER_AGENT","^utorrent/","^vBulletin","^venus/fedoraplanet","^VSE\\/","^W3C","^WebCopier","^wget","^whatsapp","^WhatWeb","^WWW-Mechanize","^Xenu Link Sleuth","^Xymon","^Yahoo","^Yandex","^Zabbix","^ZDM/\\d","^Zend_Http_Client","^ZmEu$","adbeat\\.com","amiga","analyz","AppInsights","archive","Ask Jeeves/Teoma","BingPreview","Bluecoat DRTR","BorderManager","bot","BrowseX","burpcollaborator","capture","Catchpoint","check","Chrome-Lighthouse","chromeframe","CloudFlare","collect","Commons-HttpClient","crawl","daemon","DareBoost","Datanyze","dataprovider","DejaClick","DMBrowser","download","Email","feed","fetch","finder","FirePHP","FreeSafeIP","fuck","ghost","GomezAgent","google","HeadlessChrome/","https?:","httrack","HubSpot Marketing Grader","Hydra","ibisBrowser","images","index","ips-agent","java/","JavaFX","JavaOs","Jorgee","library","Lucidworks-Anda","mail\\.ru/","NetcraftSurveyAgent/","news","nutch","OffByOne","org\\.eclipse\\.ui\\.ide\\.workbench","outbrain","parse","perl","phantom","Pingdom","Powermarks","PTST[/ ]\\d","reader","Rigor","rss","scan","scrape","search","server","SkypeUriPreview","Sogou","SpeedMode; Proxy;","spider","StatusCake","stumbleupon\\.com","SuperCleaner","synapse","synthetic","toolbar","tracemyfile","TrendsmapResolver","Twingly Recon","url","validator","WAPCHOI","Wappalyzer","Webglance","webkit2png","WinHTTP","WordPress","zgrab"].join("|")+")","i").test(e)},this._isEmpty=function(e){return!e||0===Object.keys(e).length&&e.constructor===Object};var W=function(){var e=this,t={},o=!1,i=0;"boolean"==typeof arguments[0]&&(o=arguments[0],i++);for(var n=function(i){for(var n in i)i.hasOwnProperty(n)&&(o&&"[object Object]"===Object.prototype.toString.call(i[n])?t[n]=W.call(e,!0,t[n],i[n]):t[n]=i[n])};i=3&&o[1].match(/^(com|edu|gov|net|mil|org|nom|co|name|info|biz)$/i)?o[2]+"."+o[1]+"."+o[0]:o[1]+"."+o[0]).indexOf("/")?t.split("/")[0]:t},this.gpcSupport=function(){var e=Boolean(navigator.globalPrivacyControl);return this.consoleLog("banner","Global Privacy Control is supported and enabled: "+e),e},this.doNotTrack=function(){var e=window.doNotTrack&&"1"==window.doNotTrack||navigator.doNotTrack&&("yes"==navigator.doNotTrack||"1"==navigator.doNotTrack)||navigator.msDoNotTrack&&"1"==navigator.msDoNotTrack||window.external&&"msTrackingProtectionEnabled"in window.external&&window.external.msTrackingProtectionEnabled();return this.consoleLog("banner","Do Not Track is supported and enabled: "+e),e},this.pageScrolling=function(e){var t={state:{scroll:!0,queue:0,startTouchY:0,startTouchX:0},enable:function(){if(window.removeEventListener("resize",this.onResize.bind(this)),document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchend",this.onTouchEnd),document.removeEventListener("touchmove",this.onTouchMove),this.state.queue>0&&this.state.queue--,this.state.queue<=0){var e=document.body;this.state.scroll=!0,this.showLockableOverflow(e),this.unfillGapTarget(e)}var t=document.getElementById(h);t&&t.removeAttribute("data-"+h+"-scrollable")},disable:function(){if(window.addEventListener("resize",this.onResize.bind(this)),document.addEventListener("touchstart",this.onTouchStart),document.addEventListener("touchend",this.onTouchEnd),document.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.state.queue<=0){var e=document.body;this.state.scroll=!1,this.hideLockableOverflow(e),this.fillGapTarget(e)}var t=document.getElementById(h);t&&t.setAttribute("data-"+h+"-scrollable",""),this.state.queue++},findParentBySelector:function(e,t,o){if(void 0===o&&(o=!0),o&&-1!==this.nodeListAsArray(document.querySelectorAll(t)).indexOf(e))return e;for(;(e=e.parentElement)&&-1===this.nodeListAsArray(document.querySelectorAll(t)).indexOf(e););return e},elementHasSelector:function(e,t){return-1!==this.nodeListAsArray(document.querySelectorAll(t)).indexOf(e)},eachNode:function(e,t){if(e&&t){e=e instanceof NodeList?e:[e];for(var o=0;o=e.scrollHeight},elementScrollLeftOnStart:function(e){if(e)return!!this.elementHasOverflowHidden(e)||e.scrollLeft<=0},elementScrollLeftOnEnd:function(e){if(e)return!!this.elementHasOverflowHidden(e)||e.scrollLeft+e.offsetWidth>=e.scrollWidth},elementIsScrollableField:function(e){return this.elementHasSelector(e,'textarea, [contenteditable="true"]')},elementIsInputRange:function(e){return this.elementHasSelector(e,'input[type="range"]')},hideLockableOverflow:function(e){if("true"!==e.getAttribute("data-"+h+"-locked")){var t=window.getComputedStyle(e);e.setAttribute("data-"+h+"-of-y",t.overflowY),e.setAttribute("data-"+h+"-inline-of",e.style.overflow),e.setAttribute("data-"+h+"-inline-of-y",e.style.overflowY),e.setAttribute("data-"+h+"-locked","true"),e.style.overflow="hidden"}},showLockableOverflow:function(e){"true"===e.getAttribute("data-"+h+"-locked")&&(e.style.overflow=e.getAttribute("data-"+h+"-inline-of"),e.style.overflowY=e.getAttribute("data-"+h+"-inline-of-y"),e.removeAttribute("data-"+h+"-inline-of"),e.removeAttribute("data-"+h+"-inline-of-y"),e.removeAttribute("data-"+h+"-locked"))},refillGaps:function(){this.state.scroll||this.fillGapTarget(document.body)},fillGapTarget:function(e){var t=e.style.overflowY;this.state.scroll||(e.style.overflowY=e.getAttribute("data-"+h+"-of-y"));var o=window.innerWidth-document.documentElement.clientWidth;e.style.overflowY=t,this.unfillGapTarget(e);var i=window.getComputedStyle(e);e.setAttribute("data-"+h+"-gap","true");var n=parseFloat(i.marginRight);e.style.marginRight=n+o+"px"},unfillGapTarget:function(e){"true"===e.getAttribute("data-"+h+"-gap")&&(e.removeAttribute("data-"+h+"-gap"),e.style.marginRight="")},onResize:function(){this.refillGaps()},onTouchStart:function(e){this.state.scroll||(this.state.startTouchY=e.touches[0].clientY,this.state.startTouchX=e.touches[0].clientX)},onTouchMove:function(e){if(!this.state.scroll){var t=this.state,o=t.startTouchY,i=t.startTouchX,n=e.touches[0].clientY,s=e.touches[0].clientX;if(e.touches.length<2){var a="[data-"+h+"-scrollable]",r={up:on,left:is},c={up:o+3n,left:i+3s},l=function(t,o){if(void 0===o&&(o=!1),t){var i=this.findParentBySelector(t,a,!1);if(elementIsInputRange(t))return!1;if(o||elementIsScrollableField(t)&&this.findParentBySelector(t,a)||this.elementHasSelector(t,a)){var n=!1;this.elementScrollLeftOnStart(t)&&this.elementScrollLeftOnEnd(t)?(r.up&&this.elementScrollTopOnStart(t)||r.down&&this.elementScrollTopOnEnd(t))&&(n=!0):this.elementScrollTopOnStart(t)&&this.elementScrollTopOnEnd(t)?(r.left&&this.elementScrollLeftOnStart(t)||r.right&&this.elementScrollLeftOnEnd(t))&&(n=!0):(c.up&&this.elementScrollTopOnStart(t)||c.down&&this.elementScrollTopOnEnd(t)||c.left&&this.elementScrollLeftOnStart(t)||c.right&&this.elementScrollLeftOnEnd(t))&&(n=!0),n&&(i?l(i,!0):e.preventDefault())}else l(i)}else e.preventDefault()};l(e.target)}}},onTouchEnd:function(){this.state.scroll||(this.state.startTouchY=0,this.state.startTouchX=0)}};"enable"===e?t.enable():t.disable()},this.consoleLog=function(e,t,o){if(void 0===o&&(o=null),this.options.debugMode){var i="";"banner"===e?i="CC Banner: ":"display"===e?i="CC Display: ":"privacy"===e&&(i="CC Privacy: "),console.log(i+t),o&&console.log(o)}},this.init=function(){L.displayFileLoaded&&(L.scriptInitialized||(this.triggerEvent("load"),this.setBodyClass(),this.maybeDisplay(),this.prepareEvents(),this.updateIframeOverlay(),L.scriptInitialized=!0))},this.earlyInit=function(){if(!this.isBot()){b=document.addEventListener,(m=document.querySelector('script[src*="'+y+'"]')).id="__"+h,f=document.currentScript.src,""!==m.nonce&&(S=m.nonce),j.call(this),this.setOptions({},"init"),this.consoleLog("banner","Initializing...");var e=this;document.addEventListener("readystatechange",(function(){L[document.readyState+"EventFired"]=!0,e.consoleLog("banner",'Event "'+document.readyState+'" fired.')})),document.addEventListener("DOMContentLoaded",(function(){L.domEventFired=!0,e.consoleLog("banner",'Event "DOMContentLoaded" fired.')})),window.addEventListener("load",(function(){L.loadEventFired=!0,e.consoleLog("banner",'Event "load" fired.')})),this.options.previewMode||(this.startSession(),this.getConfig(),this.options.blocking&&!v&&this.consoleLog("banner","Displaying session data.",M),this.observe())}}};window.__hu=d,window.hu=__hu,__hu.earlyInit(),window.addEventListener("load",(function(){__hu.options.previewMode&&!1===__hu.options.holdInit&&__hu.loadDependencies(!0,"load")}),!1)})()})();